<?php
namespace app\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
			'domain' => 'require',
			'username'  => 'require',
			'password'  => 'require',
			'captcha' => 'require',
			'token' => 'require'
    ];

    protected $message = [
        'domain.require' => ['msg' => '域名未授权,请联系管理员! ', 'code' => 403, 'url' => null, 'token' => null],
        'username.require' => ['msg' => '用户名不能为空! ', 'code' => 403, 'url' => null, 'token' => null],
        'password.require' => ['msg' => '密码不能为空! ', 'code' => 403, 'url' => null, 'token' => null],
        'captcha.require'  => ['msg' => '验证码不能为空! ', 'code' => 403, 'url' => null, 'token' => null],
        'token.require'  => ['msg' => 'token不能为空! ', 'code' => 403, 'url' => null, 'token' => null],
    ];
}
